package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.DemandCategory;

import java.util.List;

/**
 * @Author: 曹朋飞
 * @Date: 2018/09/12 10:47
 */
public interface DemandCategoryDao {

    //保存
    int insert(DemandCategory demandCategory);

    //修改
    int updateByPrimaryKey(DemandCategory demandCategory);

    //查询需求类别详情
    DemandCategory getDemandCategoryById(String demandCategoryId);

    //批量删除
    int batchDeleteById(String[] id);

    //分页查询
    List<DemandCategory> selectAllByDemandCategoryDel(int demandCategoryDel, String search, String sort, String way);

    //更改需求类别的状态
    int updateStatus(String demandCategoryId, Integer status);
}
